Support the Lingbao M5 Pro (PAW3395) - #6
Open
phunb3101 wants to merge 1 commit into
Open
Conversation
VID 0x3151 is the MicLink/mlzn ODM vendor id, shared by Lingbao and Fantech. The Lingbao M5 Pro answers on the same 0xFFFF/0x02 interface as Fantech's mice but needs a 2.4G relay handshake and a checksum FantechHidClient has no notion of, so it goes first in the candidate list for that vendor id; probeInterface() falls through to Fantech when LingbaoHidClient.readStatus() rejects. Lists the M5 Pro on the supported-devices page, and gives it DPI, polling rate and battery chips — battery comes from the receiver's own status command, so it is a real reading rather than a capability guess. Needs the matching @openmouse/protocol change that adds the driver. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Surfaces the Lingbao M5 Pro (PixArt PAW3395) in the app.
Depends on the matching
@openmouse/protocolchange that addsLingbaoHidClient— merge that first, or this builds against a driver thatdoes not exist yet.
Changes
native-hid/brands.ts— VID0x3151now triesLingbaoHidClientbeforeFantechHidClient.0x3151is the MicLink/mlzn ODM vendor id, shared byLingbao and Fantech, and the M5 Pro answers on the identical
0xFFFF/0x02interface while needing a 2.4G relay handshake and a checksum the Fantech
driver has no notion of.
probeInterface()already falls through to the nextcandidate when
readStatus()rejects, so Fantech hardware is unaffected.lib/supported-mice.ts— lists the M5 Pro on the supported-devices page.pages/OverviewPage.tsx— DPI, polling rate and battery chips for thebrand. Battery is included because it comes from the receiver's own status
command, so it is a real reading rather than a capability guess.
What the driver reports
Read live from a real M5 Pro receiver: DPI stages 400/800/1600/3200/6400/26000
with stage 2 active, 8000 Hz, battery 44%, firmware v3.03.
Note the receiver is an 8 kHz part, which is worth knowing because Lingbao's
own spec sheet for the base M5 Pro says 1000 Hz. The hardware, GearHub's device
table, and a second bitmask-encoded rate register all agree on 8000.
When the mouse is asleep — it drops off the receiver after a few idle minutes —
the driver reports that specifically ("no mouse is linked … move the mouse and
try again") rather than showing a device with empty settings.
🤖 Generated with Claude Code